home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
comm
/
comm1
/
cnet_who.lha
/
who
/
Upgrade266
< prev
next >
Wrap
Text File
|
1996-12-08
|
2KB
|
49 lines
/**************************************************************************\
$VER: Upgrade CNet WHO to v2.66 (from 2.00 forward)
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR;ver="2.66"
tr=transmit ; se=sendstring ; gc=getchar ; gu=getuser ; gs=getscratch
a='rexxsupport.library';if ~show('l',a) then if ~addlib(a,0,-30) then exit
se "n1Converting CNet Amiga Who config file to "ver"...n2"
se "You must FIRST be using CNet Amiga Who, v2.65 BEFORE using this update "
se "script. Alright to continue? [No]: ";gc;a=result
if a~="Y" then do;tr "No.";exit;end;else tr "Yes!"
gu 1311992 ; dp=result ; cfg=dp"Config.data"
if ~exists(a) then do
se "n2I could not locate the `Config.data' file. This upgrade script "
se "should be located inside the `Who/' directory before being used "
tr "for the first time.n1" ; exit ; end
call open(f1,dp"MakeWho","r");do 2;a=readln(f1);end;call close(f1)
if word(a,3)~="v2.65" then do
se "n2According to your `MakeWho' file, you are NOT running version 2.65 "
se "of CNet Amiga Who, but in fact are using "word(a,3)". Please install "
se "v2.65 fully before continuing...n1" ; exit ; end
se "Converting CTRL-A's in the `Config.data' file to CTRL-S's..."
call open(f1,cfg,"r")
call open(f2,cfg"2","w")
do i=1 until eof(f1)
a=readln(f1)
call writeln(f2,translate(a,"",""))
end i
call close(f2)
call close(f1)
address command "delete "cfg ; address command "rename "cfg"2 "cfg
tr "Completed!n1"
exit
SYNTAX:;ERROR:;IOERR:;e1=' Error: 'rc' ('errortext(rc)')'
e2=' Line: 'left(sigl,4)'File:';gu 1311992;a=result;gu 1311960
b=result;c='"'a||b'"';e2=e2' 'c;tr e1;tr e2;logentry e1;logentry e2
e=translate(sourceline(sigl),"\{","");do while e~=''
e3='Source: 'left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush
/**************************************************************************|
\****************************************** Frontiers BBS (716)/823-9892 **/